<?php
/*
# ------------------------------------------------------------------------
# JA Job Board Package
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/
  defined('_JEXEC') or die('Retricted Access');

JFilterOutput::objectHTMLSafe( $this->item );
JHTML::_('behavior.tooltip');
?>
<?php
	// clean item data
	JFilterOutput::objectHTMLSafe( $user, ENT_QUOTES, '' );

	if ($this->user->get('lastvisitDate') == "0000-00-00 00:00:00") {
		$lvisit = JText::_( 'Never' );
	} else {
		$lvisit	= generateDate($this->user->get('lastvisitDate'));
	}
?>

<form name="adminForm" action="index.php" method="post">
    <table width="100%">
		<tr>
		
		<td width="80%" valign="top">
			<div style="width:100%;">
			
				<?php echo $this->menu();?>
				<br>
				<fieldset class="adminform">
				<legend><?php echo JText::_( 'Employer Details' ); ?></legend>				
					<table class="admintable" cellspacing="1">
						<tr>
							<td width="150" class="key">
								<label for="name">
									<?php echo JText::_( 'Name' ); ?>
								</label>
							</td>
							<td>
								<?php echo $this->user->get('name'); ?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<label for="username">
									<?php echo JText::_( 'Username' ); ?>
								</label>
							</td>
							<td>
								<?php echo $this->user->get('username'); ?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<label for="email">
									<?php echo JText::_( 'Email' ); ?>
								</label>
							</td>
							<td>
								<?php echo $this->user->get('email'); ?>
							</td>
						</tr>
						
						<?php if ($this->me->authorize( 'com_users', 'block user' )) { ?>
						<tr>
							<td class="key">
								<?php echo JText::_( 'Block User' ); ?>
							</td>
							<td>
								<?php echo $this->user->get('block')?JText::_('Yes'):JText::_('No'); ?>
							</td>
						</tr>
						<?php } if ($this->me->authorize( 'com_users', 'email_events' )) { ?>
						<tr>
							<td class="key">
								<?php echo JText::_( 'Receive System Emails' ); ?>
							</td>
							<td>
								<?php echo $this->user->get('sendEmail')?JText::_('Yes'):JText::_('No'); ?>
							</td>
						</tr>
						<?php } if( $this->user->get('id') ) { ?>
						<tr>
							<td class="key">
								<?php echo JText::_( 'Register Date' ); ?>
							</td>
							<td>
								<?php echo generateDate($this->user->get('registerDate'));?>
							</td>
						</tr>
						<tr>
							<td class="key">
								<?php echo JText::_( 'Last Visit Date' ); ?>
							</td>
							<td>
								<?php echo $lvisit; ?>
							</td>
						</tr>
						<?php } ?>
					</table>
				</fieldset>
			</div>
		</td>
	</tr>
	</table>
	<input type="hidden" name="cid" value="<?php echo $this->user->id; ?>" />
	<input type="hidden" name="option" value="<?php echo $this->option; ?>" />
	<input type="hidden" name="view" value="jaemployers" />
	<input type="hidden" name="task" value="" />
	<input type="hidden" name="boxchecked" value="1" />
	<?php echo JHTML::_( 'form.token' ); ?>	
 </form>
